<?php
namespace app\model\user;

use think\Model;

class ZxlKnowStoreLiveClassModel extends Model
{
    protected $name = 'zxl_know_store_live_class';

    /**
     * 处理状态 或返回状态信息
     */
    public static function getStatus($key=''){
        $type = [
            '0' => '未分配',
            '1' => '进行中',
            '2' => '已结课',
        ];
        if('' !== $key){
            if(array_key_exists($key,$type)){
                return $type[$key];
            }
            return false;
        }
        return $type;
    }
}